// stores/counter.js
import { createPinia,defineStore } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'//数据存储 解决 当页面刷新的时候 pinia状态更改

export const useStore = defineStore('main', {
  state: () => ({
     themeColors: 'Light',
     menuIs:false,
  }), 
  persist: true,
  getters: {
      
  },
  actions: {
      
  }
})
const pinia = createPinia();
pinia.use(piniaPluginPersistedstate);
export default pinia;